Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify that protocols and records are not "empty" #141

Merged
merged 1 commit into from
Mar 9, 2024

Conversation

naegelejd
Copy link
Contributor

Protocol specifications with zero steps and Record specifications with zero fields both produce invalid C++ code.

I fixed by making both required:

  1. Protocols must include the sequence tag and at least one step
  2. Records must include the field tag and at least one field
  3. If a Record has a computedFields tag, it must also include at least one computed field

Closes #136

@naegelejd naegelejd merged commit 7a0ab26 into main Mar 9, 2024
14 checks passed
@naegelejd naegelejd deleted the naegelejd/fix-#136 branch March 9, 2024 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Empty protocol results in an invalid C++ CopyTo method
2 participants